<include file="App/Home/View/Public/header.html"/>
<!-----------------------------主体内容 开始------------------------------>
  <div data-role="main" class="ui-content">
  <!------一键分享时间 开始------->
    <div class="logo1">
      <div class="logo1_w70p textalign_c">
        <p class="textcolor_yellow1 sizeem15">
          <span>{$Think.lang.__JINRIZONGSHOUYI__}</span><br>
          <span id="sum">${$sum}</span><br>
          <button id="share_button" class="color_yellow1 border_none" onclick="ajax_share();" <eq name="share_key" value="1">disabled="disabled"</eq> <eq name="switch" value="close">disabled="disabled"</eq> >一键分享</button>
        </p>
      </div>  
    </div>
    <div class="clear"></div>
  <!------一键分享时间 结束------->
  <!------一键分享介绍 开始------->
  <p>
    <div class="logo1">
      <div class="pad0_5">
        <p class="textcolor_yellow1">
          <span>{$Think.lang.__YIJIANFENXIANGNEIRONGY1__}</span>
        </p>
        <p class="textcolor_yellow1">
          <span>{$Think.lang.__YIJIANFENXIANGNEIRONGY2__}</span>
        </p>
      </div>  
    </div>
    <div class="clear"></div>
  </p>
  <!------一键分享介绍 结束------>
  <!------我的流量宝 开始------->
  <p>
    <div class="logo1">
      <div class="logo1_w70p textalign_c">
        <p class="textcolor_yellow1 sizeem15">
          <span>{$Think.lang.__WODELIULIANGBAO__}</span>
        </p>
        <p class="textcolor_yellow1 sizeem15">
          <table class="flow_treasure w_100p">
            <tbody>
			<volist name="list" id="vo">
              <tr>
                <td class="textalign_l">{$vo.name}</td>
                <td class="textalign_r">{$Think.lang.__JINRISHOUYI__}：<span>${$vo.income}</span></td>
              </tr>
             </volist>
            </tbody>
          </table>
        </p>
      </div>  
    </div>
    <div class="clear"></div>
  </p>
  <!------我的流量宝 结束------>
  </div>
<!-----------------------------主体内容 结束------------------------------>
<script type="text/javascript">
	function ajax_share(){
		var key = "{$share_key}";
		if(key == "1"){
			layer.msg("{$Think.lang.__JINTIANYIJINGHUOQUSHOUYI__}");
			return false;
		}
		$.ajax({
			url:"{:U('Share/share_income')}",
			type:"POST",
			data:null,
			dataType:"JSON",
			success:function (data){
				
					layer.msg(data.info);
					if(data.status == 1){
						$('#sum').html(data.sum);
						$('#share_button').attr('disabled',true);
					}
				
			},
			error:function (){
				layer.msg("网络异常");
			}
		})
		
	
	}
</script>
<!-----------------------------底部 开始------------------------------>
<include file="App/Home/View/Public/footer.html"/>